package com.ycx.furns.service;

import com.ycx.furns.entity.Furn;
import com.ycx.furns.entity.Page;

import java.util.List;

public interface FurnService {

    public boolean addSales(int id, int count);

    public boolean minusSales(int id, int count);
    public List<Furn> queryFurns();

    public boolean addFurn(Furn furn);

    public boolean delFurn(Integer id);

    public Furn getFurnById(Integer id);

    public boolean updateFurn(Furn furn);

    public  Page<Furn> getPage(int pageNo, int pageSize);
    public  Page<Furn> getPageByName(String name, int pageNo, int pageSize);
}
